package com.wlyuan.open.scanner.domain.message;

import java.util.stream.Collectors;
import java.util.stream.Stream;

/**
 * @author lijing
 * @description
 */
public enum FilterFieldEnum {
    /**
     * 表
     */
    table,
    /**
     * 库
     */
    db,
    /**
     * 操作时间
     */
    ts_ms,
    ;

    public static Boolean filterJsonField(String fieldName) {
        return Stream.of(values()).map(Enum::name).collect(Collectors.toSet()).contains(fieldName);
    }

}
